package com.study.controller.PSIcontroller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.study.model.pojo.PSIpojo.Good;
import com.study.service.PSIservice.GoodService;


@Controller
public class GoodController {
	@Autowired
	GoodService goodService;
	
	@RequestMapping("/good")
	@ResponseBody
	private List<Good> findAll(){
		List<Good> findAll = goodService.findAll();
		return findAll;
	}
	
}
